﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ValidationControl.aspx.cs" Inherits="WorkShop.WorkShop.ValidationControl" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Validation Controls Login</title>
</head>
<body>
    <form id="frmLogin" runat="server">
    <div>
        
        <h2>Wellcome to Aution Market</h2>
        <asp:Panel ID="Panel1" runat="server" Height="165px" Width="477px">
            <asp:Label ID="lblUserID" runat="server" Text="Enter User ID :" Width="120px"></asp:Label>
            <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="valUserID" runat="server" ControlToValidate="txtUserID" ErrorMessage="Please enter a Username" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="lblPassword" runat="server" Text="Password :" Width="120px"></asp:Label>
            <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="valPassword" runat="server" ControlToValidate="txtPassword" ErrorMessage="Please enter the password" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label1" runat="server" Text="Confirm Password :" Width="120px"></asp:Label>
            <asp:TextBox ID="txtConfirmPassword" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="valConfirmPassword" runat="server" ControlToValidate="txtConfirmPassword" ErrorMessage="Please enter confirm password" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:CompareValidator ID="valConfirmPassFormat" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtConfirmPassword" ErrorMessage="Password mismatch" ForeColor="Red" SetFocusOnError="True"></asp:CompareValidator>
        </asp:Panel>
        <p>
            <asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnLogin_Click" />
&nbsp;
            <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" />
        </p>
        
    </div>
    </form>
</body>
</html>
